package fjut.acm.coding.service.Impl;

import fjut.acm.coding.entity.UserAuth;
import fjut.acm.coding.mapper.UserAuthMapper;
import fjut.acm.coding.service.TestService;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

import javax.annotation.Resource;

@Service
public class TestServiceImpl implements TestService {

    @Resource
    UserAuthMapper userAuthMapper;

    @Override
    public UserAuth myTest() {
        Example example = new Example(UserAuth.class);
        Example.Criteria criteria = example.createCriteria();
        criteria.andEqualTo("username", "18780802571");
        return userAuthMapper.selectOneByExample(example);
    }
}
